<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="editorList.title"/></title>
    <meta name="heading" content="<fmt:message key='editorList.heading'/>"/>
    <meta name="menu" content="EditorMenu"/>
</head>

<div id="search">
<form method="get" action="${ctx}/editors" id="searchForm">
    <input type="text" size="20" name="q" id="query" value="${param.q}"
           placeholder="Enter search terms..."/>
    <input type="submit" value="<fmt:message key="button.search"/>"/>
</form>
</div>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editEditor"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="editors" class="table" requestURI="" id="editorList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editEditor" media="html"
        paramId="id" paramProperty="id" titleKey="editor.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="editor.id"/>
    <display:column property="collegeEmail" sortable="true" titleKey="editor.collegeEmail"/>
    <display:column property="degree" sortable="true" titleKey="editor.degree"/>
    <display:column property="edAppliedService" sortable="true" titleKey="editor.edAppliedService"/>
    <display:column property="edCapableService" sortable="true" titleKey="editor.edCapableService"/>
    <display:column property="edResumeName" sortable="true" titleKey="editor.edResumeName"/>
    <display:column property="edResumePath" sortable="true" titleKey="editor.edResumePath"/>
    <display:column property="edServedService" sortable="true" titleKey="editor.edServedService"/>
    <display:column property="edType" sortable="true" titleKey="editor.edType"/>
    <display:column property="entrolyear" sortable="true" titleKey="editor.entrolyear"/>
    <display:column property="formerDegree" sortable="true" titleKey="editor.formerDegree"/>
    <display:column property="formermajor" sortable="true" titleKey="editor.formermajor"/>
    <display:column property="grade" sortable="true" titleKey="editor.grade"/>
    <display:column property="graduateyear" sortable="true" titleKey="editor.graduateyear"/>
    <display:column property="idle" sortable="true" titleKey="editor.idle"/>
    <display:column property="major" sortable="true" titleKey="editor.major"/>
    <display:column property="nice" sortable="true" titleKey="editor.nice"/>
    <display:column property="paypalno" sortable="true" titleKey="editor.paypalno"/>
    <display:column property="personalSignature" sortable="true" titleKey="editor.personalSignature"/>
    <display:column property="praise" sortable="true" titleKey="editor.praise"/>
    <display:column property="referrerid" sortable="true" titleKey="editor.referrerid"/>
    <display:column property="region" sortable="true" titleKey="editor.region"/>
    <display:column property="remainidle" sortable="true" titleKey="editor.remainidle"/>
    <display:column property="resume" sortable="true" titleKey="editor.resume"/>
    <display:column property="school" sortable="true" titleKey="editor.school"/>
    <display:column property="servicetype" sortable="true" titleKey="editor.servicetype"/>
    <display:column property="userId" sortable="true" titleKey="editor.userId"/>
    <display:column property="volume" sortable="true" titleKey="editor.volume"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="editorList.editor"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="editorList.editors"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="editorList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="editorList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="editorList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editEditor"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("editorList");
</script>
